package edu.bit.water.dao;

import edu.bit.water.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * @author HJS
 */
@Mapper
@Repository
public interface TableWaterSavingDao {

    List<ManagementIndicator> managementSelect(int last_id);
    List<TechnicalIndicator> technicalSelect(int last_id);
    int managementUpdate(ManagementIndicator managementIndicator)throws DuplicateKeyException;

    int technicalUpdate(TechnicalIndicator technicalIndicator);

    int labelUpdate(LabelWaterSaving labelWaterSaving);

    List<ManagementNote> getManagementNote(String standardNumber);

    List<TechnicalNote> getTechnicalNote(String standardNumber);
}
